#ifndef SOLOADER_PATCH_H
#define SOLOADER_PATCH_H

#include <stdio.h>
#include <stdlib.h>

#include <sys/time.h>

#include <SDL2/SDL.h>
struct tm *localtime_soloader(time_t *timer);

FILE *fopen_soloader(const char *filename, const char *mode);

int __android_log_vprint(int prio, const char *tag, const char *fmt, ...);
int __android_log_print(int prio, const char *tag, const char *fmt, ...);

int SDL_Android_Init_soloader();
int SDL_AudioInit_soloader(const char *driver_name);
int SDL_VideoInit_soloader(const char *driver_name);

SDL_Window *SDL_CreateWindow_soloader(const char *title, int x, int y, int w, int h, Uint32 flags);
int SDL_SetWindowDisplayMode_soloader(SDL_Window *window, const SDL_DisplayMode *mode);
void SDL_ShowWindow_soloader(SDL_Window *window);
SDL_Renderer *SDL_CreateRenderer_soloader(SDL_Window * window, int index, Uint32 flags);
void SDL_RenderPresent_soloader(SDL_Renderer *renderer);
SDL_Surface *IMG_Load_RW_soloader(SDL_RWops *src, int freesrc);

void patch_game();

#endif